#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time       :   22:47
# Author     : Y4
# Site       : 
# File       : compute.py
# Software   : PyCharm

__all__ = ['num', 'add']

num = 100


def add(*args):
    if len(args) > 1:
        sum = 0
        for i in args:
            sum += i
        return sum
    else:
        print("至少传入两个参数")


def minus(*args):
    if len(args) > 1:
        sum = 0
        for i in args:
            sum -= i
        return sum
    else:
        print("至少传入两个参数")


class Person:
    def __init__(self, name):
        self.name = name

    def test(self):
        print(f"{self.name}正在使用Person类中test方法")

    @classmethod
    def test1(cls):
        print("正在使用Person类方法")
